package com.webank.wedatasphere.qualitis.question.controller;

import com.webank.wedatasphere.qualitis.question.service.QuestionUserService;
import com.webank.wedatasphere.qualitis.question.service.dto.UserDto;
import com.webank.wedatasphere.qualitis.response.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/question/user")
public class QuestionUserController {

    @Resource
    private QuestionUserService questionUserService;

    @GetMapping("/list")
    public Resp<List<UserDto>> getAllUsers(){
        return Resp.Ok(questionUserService.getAllUsers());
    }
}
